// components/timingPage/timingPage.js
Component({

  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    options:[
      { name: "1", label: "星期一" },
      { name: "2", label: "星期二" },
      { name: "3", label: "星期三" },
      { name: "4", label: "星期四" },
      { name: "5", label: "星期五" },
      { name: "6", label: "星期六" },
      { name: "7", label: "星期七" },
    ],
    checkedValues:['3']
  },
  /**
   * 组件的方法列表
   */
  methods: {
    onChange(event) {
      this.setData({
        checkedValues: event.detail,
      });
      console.log(this.data.checkedValues);
    },
    toggle(event) {
      const { index } = event.currentTarget.dataset;
      const checkbox = this.selectComponent(`.checkboxes-${index}`);
      checkbox.toggle();
    },
    noop() {},
  }
})